package com.smmisia.auth.exception;

/**
 * 认证错误码
 * @author smmisia
 * @date 2024/9/5
 */
public enum AuthErrorCode implements ErrorCode{
    AUTH_FAILED("AUTH_FAILED", "认证失败"),
    USER_NOT_EXIST("USER_NOT_EXIST", "用户不存在"),
    USER_EXIST("USER_EXIST", "用户已存在"),
    INSERT_FAILED("INSERT_FAILED", "插入失败"),
    UPDATE_FAILED("UPDATE_FAILED", "更新失败"),
    DELETE_FAILED("DELETE_FAILED", "删除失败"),
    ;

    private String code;

    private String message;

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    AuthErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
